package com.example.test.a20240530;

import com.alibaba.druid.sql.visitor.functions.Char;
import org.apache.commons.lang3.StringUtils;

import java.util.Scanner;

/**
 * 数字颠倒
 *
 * 输入一个整数，将这个整数以字符串的形式逆序输出
 * 程序不考虑负数的情况，若数字含有0，则逆序形式也含有0，如输入为100，则输出为001
 *
 *
 */
public class HJ11 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);

        int i = in.nextInt();
        String s = String.valueOf(i);
        final StringBuffer stringBuffer = new StringBuffer(s);
        final StringBuffer reverse = stringBuffer.reverse();
        System.out.println(reverse);

    }
}
